package com.woniu.hospital.service.impl;

import com.woniu.hospital.domain.HosptilpriceType;
import com.woniu.hospital.mapper.HosptilpriceTypeMapper;
import com.woniu.hospital.service.IHosptilpriceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 住院费用类型表Service业务层处理
 * 
 * @author wolf-six
 * @date 2023-02-15
 */
@Service
public class HosptilpriceTypeServiceImpl implements IHosptilpriceTypeService 
{
    @Autowired
    private HosptilpriceTypeMapper hosptilpriceTypeMapper;

    /**
     * 查询住院费用类型表
     * 
     * @param hosptilpriceTypeid 住院费用类型表主键
     * @return 住院费用类型表
     */
    @Override
    public HosptilpriceType selectHosptilpriceTypeByHosptilpriceTypeid(Long hosptilpriceTypeid)
    {
        return hosptilpriceTypeMapper.selectHosptilpriceTypeByHosptilpriceTypeid(hosptilpriceTypeid);
    }

    /**
     * 查询住院费用类型表列表
     * 
     * @param hosptilpriceType 住院费用类型表
     * @return 住院费用类型表
     */
    @Override
    public List<HosptilpriceType> selectHosptilpriceTypeList(HosptilpriceType hosptilpriceType)
    {
        return hosptilpriceTypeMapper.selectHosptilpriceTypeList(hosptilpriceType);
    }

    /**
     * 新增住院费用类型表
     * 
     * @param hosptilpriceType 住院费用类型表
     * @return 结果
     */
    @Override
    public int insertHosptilpriceType(HosptilpriceType hosptilpriceType)
    {
        return hosptilpriceTypeMapper.insertHosptilpriceType(hosptilpriceType);
    }

    /**
     * 修改住院费用类型表
     * 
     * @param hosptilpriceType 住院费用类型表
     * @return 结果
     */
    @Override
    public int updateHosptilpriceType(HosptilpriceType hosptilpriceType)
    {
        return hosptilpriceTypeMapper.updateHosptilpriceType(hosptilpriceType);
    }

    /**
     * 批量删除住院费用类型表
     * 
     * @param hosptilpriceTypeids 需要删除的住院费用类型表主键
     * @return 结果
     */
    @Override
    public int deleteHosptilpriceTypeByHosptilpriceTypeids(Long[] hosptilpriceTypeids)
    {
        return hosptilpriceTypeMapper.deleteHosptilpriceTypeByHosptilpriceTypeids(hosptilpriceTypeids);
    }

    /**
     * 删除住院费用类型表信息
     * 
     * @param hosptilpriceTypeid 住院费用类型表主键
     * @return 结果
     */
    @Override
    public int deleteHosptilpriceTypeByHosptilpriceTypeid(Long hosptilpriceTypeid)
    {
        return hosptilpriceTypeMapper.deleteHosptilpriceTypeByHosptilpriceTypeid(hosptilpriceTypeid);
    }
}
